interface FetchNoticeDetailAPIResData {
  code: number
  msg: string
  time: string
  data: NoticeDetail
}

/**
 * @description 根据传入的通知 id，获取通知详情数据
 */
export function fetchNoticeDetailAPI(id: string, token: string) {
  return httpInstance.get<FetchNoticeDetailAPIResData>(
    '/api/notice/detail',
    { params: { id }, headers: { token } },
  )
}
